<?

/*	Langs TEMPLATE
*	
*	renders an unsorted list with the account language options.
*
*	Paramaters: none
*	
*
*					*/


$langs	= explode( ",", engine_get('langs') );
$url	= (($id = $_GET['id'])? "?id=$id&amp;": "?") . "fresh=lang:";  

foreach($langs as $lang) $output .= "<li " .(( $lang==LANG )? "class='active'": ""). "><a href='$url$lang'>$lang</a></li>";
echo "<ul id='lang'>\n$output\n</ul>";

?>